<template>
	<view style="background-color: #f8f8f8;height: 100vh;">
		<view class="tousu_head">
			<view class="fs46">
				投诉举报中心
			</view>
			<view class="fs28">
				请按照下方指引选择
			</view>
		</view>
		<view class="tousu_content">
			<view class="tousu_tip">
				您所提交的内容和个人隐私信息平台将严格保密
			</view>
			<view class="tousu_type" @click="jump(item)"  v-for="(item,index) in  list" :key="index">
				<view class="fs32 mb10">
					{{item.name}}
				</view>
				<view class="fs26 mt20 c6">
					{{item.remark}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onLoad() {
			this.poatlist()
		},
		methods: {
			jump(item) {
				uni.navigateTo({
					url: '/pages/complaint/complaint?type='+item.name
				})
			},
			poatlist() {
				this.api.post('login/getConfig', {
					type: 12
				}).then(res => {
					console.log(res);
					if (res.code == 200) {
						this.list = res.data
					}
				})
			},
		}
	}
</script>

<style lang="scss">
	.tousu_type {
		width: 92%;

		height: 160rpx;
		background-color: #f5f5f5;
		border-radius: 16rpx;
		margin: 30rpx;
		padding: 30rpx 30rpx;
		font-size: 30rpx;
		box-sizing: border-box;
	}

	.tousu_tip {
		font-size: 28rpx;
		background: #eaf3ff url(../../static/images/lab.png) 50% no-repeat;
		background-size: 26rpx 26rpx;
		background-position: 22rpx 50%;
		border-radius: 20rpx 20rpx 0 0;
		text-indent: 58rpx;
		color: #2681fe;
		height: 65rpx;
		line-height: 65rpx;
	}

	.tousu_content {
		width: 92%;
		background-color: #fff;
		border-radius: 12rpx;
		padding-bottom: 30rpx;
		margin: -50rpx auto 0;
	}

	.tousu_head {
		background: url(../../static/images/tousu_bg4ba46bda.png) 50% no-repeat;
		background-size: 100%;
		// width: 100%;
		height: 200rpx;
		background-color: #3f8cf6;
		padding: 55rpx 0 0 55rpx;
		color: #fff;
	}
</style>